package com.ocean.core.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 分页参数
 *
 * @author zhang
 * @since 2022-8-20
 */
@Data
public class BasePageDTO {

    /**
     * 页码
     */
    @NotNull(message = "请输入页码")
    @Schema(description = "页码", required = true)
    private Integer page;

    /**
     * 页大小
     */
    @NotNull(message = "请输入页大小")
    @Schema(description = "页大小", required = true)
    private Integer pageSize;
}
